<?php
$script = '<script type="text/javascript">
  function display(){
  	var query = document.getElementById("query").value;
  	window.location.href="'.$GLOBALS['url'].'index.php?q=search/?keyword=" + escape(query);
  }
  </script>';
self::header('text', $script);
?>		<h2>Vyhledávání</h2><ul class="search">
          <div id="search">
            <li><input type="text" id="query" name="query" value="<?php echo htmlspecialchars($_GET['query']) ?>" onfocus="this.value = ''; this.onfocus = undefined;" size="20" /></li>
            <li><input type="button" value="<?php echo SUBMIT ?>" onclick="javascript:display();" /> </li>
          </div>
        </ul>